<template>
  <div class="login">
    <!-- 头部组件 -->
    <my-header :left="true" title="登录">
      <span slot="right_icon" class="iconfont icon-shouye" @click="to_home"></span>
    </my-header>
    <!-- 登录主题部分 -->
    <login-body></login-body>
  </div>
</template>
<script>
import MyHeader from "../common/Header";
import LoginBody from "./components/LoginBody";
export default {
  name:"Login",
  components:{
    MyHeader,
    LoginBody
  },
  methods: {
    to_home(){
      this.$router.push("/home");
    }
  },
}
</script>
<style lang="less" scoped>
  .login{
    padding-top: 0.45rem;
  }
  .icon-shouye{
    font-size: 0.2rem;
  }
</style>